﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InPhieuXuatKho.ascx.cs" Inherits="WebUserControl_InPhieuXuatKho" %>
<%@ Register src="uscTitleForm.ascx" tagname="uscTitleForm" tagprefix="uc2" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>
<%@ Import Namespace="BCDataCenter" %>

<script type="text/javascript">
    function PrintedOrder() {            
        window.open('Print.aspx', 'PrintMe', 'height=900px,width=900px,scrollbars=1');        
    }
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Block" >
    <ContentTemplate>
                <table width="100%">
                    <tbody> 
                    <tr>
                        <td>
                            <uc2:uscTitleForm ID="uscTitleForm1" runat="server" Messeage="In Phiếu Xuất Kho" />
                        </td>
                    </tr>                   
                    <tr>
                        <td>
                            <div  style="width: 100%; height: 528px; overflow: scroll">                            
                            <asp:GridView ID="gvDonHangChuaIn" runat="server" AutoGenerateColumns="False" 
                                     Width="100%" onrowcommand="gvDonHangChuaIn_RowCommand" >
                                <Columns>
                                    <asp:TemplateField HeaderText="In ?">
                                        <ItemTemplate>                                            
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Print">
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/WebMaster/Images/Printer.png" /></asp:LinkButton>  
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    
                                    <asp:BoundField DataField="MaHD" HeaderText="Số ĐH" />
                                    <asp:BoundField DataField="TenTVV" HeaderText="Tư vấn viên" />
                                    <asp:BoundField DataField="TienHD" HeaderText="Tiền ĐH" DataFormatString="{0:###,###}" />
                                    <asp:BoundField DataField="TienHD" HeaderText="Thanh toán" DataFormatString="{0:###,###}" />                                                                       
                                </Columns>
                            </asp:GridView>                            
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <uc1:uscMsgBox ID="uscMsgBox1" runat="server" />
        </ContentTemplate>   
</asp:UpdatePanel>